package org.future.wsdl.data;

import javax.xml.namespace.QName;

/**
 * wsdl:fault 元素信息
 * @author dycc
 *
 */
public class WsdlBindingFault {
    
    private String name;
    
    private QName extQName;
    
    private String extAttrUse;
    
    private String extAttrName;
    
    // name
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    // extQName
    public QName getExtQName() {
        return extQName;
    }
    public void setExtQName(QName extQName) {
        this.extQName = extQName;
    }
    // extAttrUse
    public String getExtAttrUse() {
        return extAttrUse;
    }
    public void setExtAttrUse(String extAttrUse) {
        this.extAttrUse = extAttrUse;
    }
    // extAttrName
    public String getExtAttrName() {
        return extAttrName;
    }
    public void setExtAttrName(String extAttrName) {
        this.extAttrName = extAttrName;
    }
    
    /**
     * toString
     */
    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append("<wsdl:fault name=\"" + name + "\"" + ">");
        sb.append("\n");
        sb.append("<" + extQName.getPrefix() + ":" + extQName.getLocalPart());
        sb.append(" use=\"" + extAttrUse + "\"" + " name=\"" + extAttrName + "\"");
        sb.append(" />");
        sb.append("\n");
        sb.append("</wsdl:fault>");
        return sb.toString();
    }
}
